package com.example.blog.annotation;


import java.lang.annotation.*;

/**
 * @Program: admin
 * @ClassName RequiresPermission
 * @Author: liutao
 * @Description:
 * @Create: 2023-03-20 08:11
 * @Version 1.0
 **/

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequiresPermission {
    String[] roles();
    String[] permissions() default " ";
}
